SWFObject: Embedding SWF using Javascript
May 11, 2008 § Leave a comment
SWFObject is a javascript open source project that generates SWF <embed> html tags.
Seems so trivial, why do I or readers need this?
Advantages of SWFObject:
- It can generates embed tags dynamically.
- It worries about multi-browsers support, so that you don’t have to.
- There are multiple ways of embedding SWF, with SWFObject, you don’t have to worry about that.
Why you should use SWFObject (from its wiki page):
- Is more optimized and flexible than any other Flash Player embed method around
- Offers one solution for everybody: It shouldn’t matter if you are an HTML, Flash, or JavaScript developer, there should be something in it for everyone
- Breaks the cycle of being locked into vendor specific markup and promotes the use of web standards and alternative content
- Uses unobtrusive JavaScript and JavaScript best practices
- Is easy to use
Resources:
Leave a comment